<!DOCTYPE html>
<!-- 模态窗口编辑模板 -->
<form action="" id="myform" class="form-horizontal form-bordered" novalidate="novalidate" method="post">
<!-- 窗口标题开始 -->
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
	<h4 class="modal-title" style="font-weight:bold;">查看卖盘池订单</h4>
</div>
<!-- 窗口标题结束-->
<!-- 内容开始 -->
<div class="modal-body">
	<div class="portlet-body form">
		<form role="form" class="form-horizontal" id="myForm">
		<input type=hidden name="mypretime" id="mypretime" value="0">
			<div class="form-body">
				<div class="form-group form-md-radios">
					<div >
						<table class="ttTbl" id="viewOrderTbl">
							<thead>
								<tr>
									<th>&nbsp;</th>
									<th>订单编号</th>
									<th>买方企业</th>
									<th>卖方企业</th>
									<th>总金额</th>
									
								</tr>
							</thead>
							<tbody>
								<#list list as order>
									<tr onclick="orderDetail(${(order.id)!})" style="cursor:pointer;">
										
										<td>${order_index + 1}</td>
										<td>${(order.orderCode)!}</td>
										<td>${(order.buyCompanyNm)!}</td>
										<td>${(order.sellCompanyNm)!}</td>
										<td>${(order.totalPrice)!}</td>
									</tr>
								</#list>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<!-- 内容结束 -->
<!-- 底部按钮开始 -->
<div class="modal-footer">
	<button type="button" class="btn green  fa fa-check" data-dismiss="modal"> 确定</button>
</div>
<!-- 结束 -->
</form>
<script>
$(function(){
	
	$("#viewOrderTbl tr").hover(function(){
		$(this).css("background-color", "#95D0CA")
	}, function(){
		$(this).css("background-color", "#fff")
	});
});
var outdate=0;
function orderDetail(orderId){
	Today = new Date(); 
	var NowHour = Today.getHours(); 
	var NowMinute = Today.getMinutes(); 
	var NowSecond = Today.getSeconds(); 
	var mysec = (NowHour*3600)+(NowMinute*60)+NowSecond; 
	if(mysec-outdate>2){ 
		outdate=mysec;
		CommonUtils.editModal(BASE_URL + "/customerDetail/orderRecord/orderDetail.do?orderId="+orderId, 800);
		
	} 
	else 
	{ 
	return false; 
	} 
	
}	
</script>